package com.loooooo.pm2024.config;


import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ModelAttribute;

@ControllerAdvice
public class GlobalConfig {

    @ModelAttribute
    public void globalModel(ModelMap model){
        model.addAttribute("now", System.currentTimeMillis());
    }
}